package com.shujia.extends_.exer;

/*
定义一个人类(姓名，年龄，性别，吃，睡) ，学生类继承人类(学号，班级，课程) ，老师类继承人类（工号，教龄，教书）
 */
public class Person {
    private String name;
    private int age;
    private int sex;

    public void eat() {
        System.out.println("eat ...");
    }

    public void sleep() {
        System.out.println("sleep ...");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }
}
